package cn.laike.modules.dev.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.repository.query.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

import cn.laike.modules.dev.entity.HotelEntity;

/**
 * 酒店列表
 * 
 * @author ziye
 * @email 524748907@qq.com
 * @date 2019-02-18 16:57:21
 */
public interface HotelDao extends BaseMapper<HotelEntity> {
	
	/**
	 * 获取酒店详情
	 * @param id
	 * @return
	 */
	List<HotelEntity> getHotel(@Param("id") Integer id);
	
	/**
	 * 查询酒店列表
	 * @param uid
	 * @return
	 */
	List<HotelEntity> queryHotelList(@Param("uid") Long uid,@Param("cityId") Integer cityId,@Param("name") String name);
	
	List queryHotelNameList(@Param("uid") Long uid);
	
	
	Map<String, Integer> getHotelCount(@Param("uid") Long uid);
	
}
